package com.jiazhong.basic.shuxin.thread.c;

import lombok.SneakyThrows;

public class DemoA implements Runnable {

    @SneakyThrows
    public void run() {
        for (int i = 1; i < 11; i++) {
            String currentThreadName = Thread.currentThread().getName();
            System.out.println(currentThreadName + "输出了：" + i);
            Thread.sleep(500);
        }
    }
}
